package com.hq.bootdemo.service.impl;

import com.hq.bootdemo.entity.TypeEntity;
import com.hq.bootdemo.mapper.TypeMapper;
import com.hq.bootdemo.service.TypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TypeServiceImpl implements TypeService {
   @Resource
//           或者@Autowired(required = false)
    TypeMapper typeMapper;
    @Override
    public List<TypeEntity> selectAll(){
        return typeMapper.selectAll();
    }

}
